		<!-- basic scripts -->

		<!--[if !IE]> -->
		<script type="text/javascript">
			window.jQuery || document.write("<script src='/assets/js/jquery.js'>"+"<"+"/script>");
		</script>

		<!-- <![endif]-->

		<!--[if IE]>
<script type="text/javascript">
 window.jQuery || document.write("<script src='/assets/js/jquery1x.js'>"+"<"+"/script>");
</script>
<![endif]-->
		<script type="text/javascript">
			if('ontouchstart' in document.documentElement) document.write("<script src='/assets/js/jquery.mobile.custom.js'>"+"<"+"/script>");
		</script>
		<script src="/assets/js/bootstrap.js"></script>
		<script src="/assets/js/jquery-ui.js"></script>
		<!-- ace scripts -->
		<script src="/assets/js/ace/elements.scroller.js"></script>
		<script src="/assets/js/ace/elements.fileinput.js"></script>
		<script src="/assets/js/ace/elements.typeahead.js"></script>
		<script src="/assets/js/ace/elements.spinner.js"></script>
		<script src="/assets/js/ace/elements.treeview.js"></script>
		<script src="/assets/js/ace/elements.wizard.js"></script>
		<script src="/assets/js/ace/elements.aside.js"></script>
		<script src="/assets/js/ace/ace.js"></script>
		<script src="/assets/js/ace/ace.ajax-content.js"></script>
		<script src="/assets/js/ace/ace.touch-drag.js"></script>
		<script src="/assets/js/ace/ace.sidebar.js"></script>
		<script src="/assets/js/ace/ace.sidebar-scroll-1.js"></script>
		<script src="/assets/js/ace/ace.submenu-hover.js"></script>
		<script src="/assets/js/ace/ace.widget-box.js"></script>
		<script src="/assets/js/ace/ace.settings.js"></script>
		<script src="/assets/js/ace/ace.settings-rtl.js"></script>
		<script src="/assets/js/ace/ace.settings-skin.js"></script>
		<script src="/assets/js/ace/ace.widget-on-reload.js"></script>
		<script src="/assets/js/ace/ace.searchbox-autocomplete.js"></script>
		
		<!-- inline scripts related to this page -->
        <script type="text/javascript">
            jQuery(function($) {
               $('#sidebar2').insertBefore('.page-content');
               
               $('.navbar-toggle[data-target="#sidebar2"]').insertAfter('#menu-toggler');
               
               
               $(document).on('settings.ace.two_menu', function(e, event_name, event_val) {
                 if(event_name == 'sidebar_fixed') {
                     if( $('#sidebar').hasClass('sidebar-fixed') ) {
                        $('#sidebar2').addClass('sidebar-fixed');
                        $('#navbar').addClass('h-navbar');
                     }
                     else {
                        $('#sidebar2').removeClass('sidebar-fixed')
                        $('#navbar').removeClass('h-navbar');
                     }
                 }
               }).triggerHandler('settings.ace.two_menu', ['sidebar_fixed' ,$('#sidebar').hasClass('sidebar-fixed')]);
            })
        </script>
		